import yaml


def get_yaml(file_path, type):
    with open(file_path, 'r', encoding='utf-8') as file:
        result = yaml.safe_load(file)

        result = result.get('add').get(type)

    return result

if __name__ == "__main__":
    print(get_yaml('../data/category_type.yml', 'category_type'))